package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Setter@Getter
public class User extends BaseDomain{

    public static final int GENDER_MAN=1;//男
    public static final int GENDER_WOMAN=0;//女
    public static final int GENDER_UNKNOW=-1;//未知

    private String email;//邮箱

    private String nickName;//昵称

    private String password;

    private String place;//地区

    private String headImgUrl;//头像

    private int gender;//性别

    private String coverImgUrl;//背景

    private String sign;//签名

    /**
     * 供页面表格上显示时使用
     * @return
     */
    public String getGenderName(){
        if (gender==GENDER_MAN) {
            return "男";
        } else if (gender==GENDER_WOMAN) {
            return "女";
        }
        return "保密";
    }
}